package com.web.portal.services.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.web.portal.mapper.ProjectMapper;
import com.web.portal.pojo.LabelInfo;
import com.web.portal.pojo.Project;
import com.web.portal.services.ProjectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ProjectServiceImpl extends ServiceImpl<ProjectMapper, Project>
        implements ProjectService {
    @Autowired
    private ProjectMapper projectMapper;
    @Override
    public Project selectByProjectCode(String ProjectCode) {
        QueryWrapper<Project> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("project_code", ProjectCode);
        return projectMapper.selectOne(queryWrapper);
    }
}
